@nice2dev/ui 1.3.0 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,98 @@
1
1
  # [1.0.27] — 2026-06-07
2
2
 
3
+ ## 1.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - c8bea88: Sidebar menus nested to any depth, coloured by level and by branch; tabs in the colour of their branch.
8
+
9
+ - `NiceSidebarNav`: views nest through `children` to any depth (`SidebarNavView.children`). The
10
+ deep tree works everywhere:
11
+ - `maxDepth` now defaults to every level (it stopped at 4), and its slider goes to 10 = all;
12
+ - search finds nested views with their whole path and leaves out those under a hidden item;
13
+ - favorites, hiding and icons-only mode work on every level; in icons-only mode the tooltip
14
+ shows the item's path;
15
+ - levels 5+ are indented by `--nice-sidebar-indent-step` (16px);
16
+ - the branches above the active route open once when the route changes, and every branch on
17
+ the way down gets a bold label.
18
+ - A group with its own `route`: clicking its label opens the route and expands the group; the
19
+ arrow only expands or collapses it.
20
+ - Colours — a full row background with readable text, hover and active derived from it:
21
+ - `levelColors` colours the levels of the whole tree: `[0]` the source header, `[1]` the first
22
+ level, and so on; past the end, tints of the last colour;
23
+ - `color` / `levelColors` on a source, module, role, unit or view overrides it for that subtree;
24
+ one `color` gives the deeper levels tints of it (shades in a dark theme, `levelShading`);
25
+ - colours are written as the `--nice-sidebar-level-N-*` vars a theme's `nesting.sidebar` emits,
26
+ so the source header now takes level 1 when it is set;
27
+ - **`SidebarNavDataSource.color` was ignored until now — it colours the source's subtree from
28
+ this release on.**
29
+ - `onNavigate`'s third argument (`SidebarNavNavigateOptions`) carries `color` (the row's colour),
30
+ `branchColor` (the nearest branch with its own colour, e.g. the database a source stands for)
31
+ and `path`, besides `forceNew`.
32
+ - New exports: `walkSidebarNav`, `findSidebarItemByRoute` and `mapSidebarViews`, for walking the
33
+ data at any depth instead of loops over source → module → view.
34
+ - `NiceNavShell`:
35
+ - tabs have `color`, drawn as a 3px bar along the top and a light tint, and kept with the
36
+ persisted tabs;
37
+ - `tabColors` (`'none'` default, `'branch'`, `'level'`) gives tabs opened from the sidebar the
38
+ colour of their branch or row, and `api.openFromSidebar` does the same for a `sidebar` slot of
39
+ your own;
40
+ - tabs opened from the sidebar take the item's label and icon when `routeLabels` / `routeIcons`
41
+ do not name the route;
42
+ - `openRoute(route, { color })` repaints a tab that is already open;
43
+ - `sidebarProps` passes props to the built-in sidebar;
44
+ - home tiles of coloured tabs show the colour.
45
+ - `NiceTopNav`'s mobile drawer passes `onSidebarNavigate`'s third argument on.
46
+ - Sidebar prefs passed as `preferences` no longer get re-applied on mount over what the sidebar
47
+ saved in its first effect.
48
+ - `@nice2dev/ui-core`: `nestingLevelColors()` and `isDerivableColor()` exported — the theme's
49
+ nesting colour derivation, for colouring a subtree with the same rules.
50
+
51
+ - Updated dependencies [c8bea88]
52
+ - @nice2dev/ui-core@1.3.2
53
+ - @nice2dev/i18n@1.3.2
54
+
55
+ ## 1.3.1
56
+
57
+ ### Patch Changes
58
+
59
+ - 27af285: Fill-height layouts: the sidebar's collapse button and the wizard's button bar stay at the bottom edge.
60
+
61
+ - `NiceNavShell` gets `height` (px or any CSS length). The shell's default `height: 100%` fills a
62
+ parent with a definite height; under a parent that only has `min-height` (a page wrapper with
63
+ `min-height: 100vh`) it is the content's height, so the shell grew with the page, nothing scrolled
64
+ inside it, and the `showStickyFooter` row and the sidebar's collapse button moved down with the
65
+ content. Give the shell a definite height (`height="100dvh"` when it is the whole page) or give its
66
+ parent one.
67
+ - `NiceNavShell`: a `NiceSidebarNav` plugged into the `sidebar` slot with its default `sticky` was
68
+ `100vh` tall whatever the shell's height — its rule loads later in `style.css` with the same
69
+ specificity and won over the slot's `height: 100%`. In a shell shorter than the screen (a top bar
70
+ above it) the column clipped the sidebar and its collapse button. It is now never taller than
71
+ the column; a shell without a definite height behaves as before.
72
+ - `NiceSetupWizard` gets `height` (px or any CSS length). By default the wizard is as tall as the
73
+ step, up to `100vh`, so on a short step the button bar sat right under it. With a height the wizard
74
+ fills exactly that (no 400px minimum, no `100vh` cap, border included): the step body scrolls and
75
+ the Back / Next bar stays at the bottom edge on every step — `height="100%"` in a parent with a
76
+ definite height, `"100dvh"` for the whole screen.
77
+
78
+ - 3d31f25: The setup wizard's header stays in its step column, and theme thumbnails look like a page.
79
+
80
+ - `NiceSetupWizard` (`layout="vertical"`): the header — branding, language, theme, restart — heads
81
+ the step column in the flow instead of lying over it with room for one row. What did not fit the
82
+ 260px column (on omniverk.com the theme picker and restart) ran over the step body; now the
83
+ controls wrap to a second row under the logo. The step list is 260px with its padding (it was
84
+ 292px, over the body, and wider than a phone in the narrow layout), it lost the 60px gap the
85
+ overlaid header needed, and the progress bar runs along the top edge of the step body.
86
+ - Compact pickers (`NiceThemePicker`, `NiceLanguagePicker`, `NiceCountryPicker` with `compact`) no
87
+ longer keep the field's 200px minimum width: a 42px trigger took 200px of a toolbar.
88
+ - `NiceThemePicker`'s `'page'` preview (`ThemePreviewSwatch`) is a page in miniature: a low accent
89
+ bar across the top, under it the page background (`backgroundSecondary`) as thin margins left and
90
+ right, and a card (`background`, bordered) with two lines of text (`textColor`). The header,
91
+ sidebar and lines before it read as a flag at 24px. Theme descriptors stay as they are.
92
+
93
+ - @nice2dev/i18n@1.3.1
94
+ - @nice2dev/ui-core@1.3.1
95
+
3
96
  ## 1.3.0
4
97
 
5
98
  ### Minor Changes